﻿
namespace Entity;

/// <summary>
/// 提现记录
/// </summary>
public class Cash : BaseEntity
{
    /// <summary>
    /// 所属用户
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 提现账户
    /// </summary>
    public string CashPhone { get; set; } = "";

    /// <summary>
    /// 提现账户名称
    /// </summary>
    public string CashName { get; set; } = "";

    /// <summary>
    /// 提现账户ID
    /// </summary>
    public int CashAccountId { get; set; }

    /// <summary>
    /// 提现金额
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 实际到账金额
    /// </summary>
    public decimal RealPrice { get; set; }

    /// <summary>
    /// 服务费
    /// </summary>
    public decimal ServicePrice { get; set; }

    /// <summary>
    /// 所属角色
    /// </summary>
    public Enums.TokenRole Role { get; set; }

    /// <summary>
    /// 提现状态
    /// </summary>
    public CashStatus State { get; set; }

    /// <summary>
    /// 驳回理由
    /// </summary>
    public string FailMsg { get; set; } = "";

    public int MoneyLogId { get; set; }
}

/// <summary>
/// 提现状态
/// </summary>
public enum CashStatus
{
    审核中,
    通过,
    驳回
}

/// <summary>
/// 提现账户
/// </summary>
public class CashAccount : BaseEntity
{
    /// <summary>
    /// 所属用户
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 角色
    /// </summary>
    public Enums.TokenRole Role { get; set; }

    /// <summary>
    /// 提现账户
    /// </summary>
    public string Phone { get; set; } = "";

    /// <summary>
    /// 账户名称
    /// </summary>
    public string Name { get; set; } = "";

    /// <summary>
    /// 提现类型 alipay , wechat
    /// </summary>
    public string Type { get; set; } = "alipay";
}



